<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <!-- Header -->
    <header class="header_bg clearfix">
        <div class="container clearfix">
            <!-- Logo -->
            <div class="logo">
                <a class="text" href="${pageContext.request.contextPath}/index"><h2 class="white">帮帮取</h2></a>
            </div>
            <!-- /Logo -->

            <!-- Master Nav -->
            <nav class="main-menu">
                <ul>
                    <li><a href="${pageContext.request.contextPath}/index">主页</a></li>
                    <li>
                        <a>订单</a>
                        <ul>
                            <li><a href="${pageContext.request.contextPath}/order/getAllOrder">查看订单</a></li>
                            <li><a href="${pageContext.request.contextPath}/order/publishNewOrder">发布订单</a></li>
                        </ul>
                    </li>
                    <li><a href="#">帖子</a>
                        <ul>
                            <li><a href="${pageContext.request.contextPath}/post/postlist">查看帖子</a></li>
                            <li><a href="${pageContext.request.contextPath}/post/newpostpage">发布帖子</a></li>
                        </ul>
                    </li>
                    <c:if test="${sessionScope._LOGIN_USER_.userId!=null}">
                    <li><a href="#">我的</a>
                        <ul>
                            <li><a href="${pageContext.request.contextPath}/order/getMyOrder">我的订单</a></li>
                            <li><a href="${pageContext.request.contextPath}/order/myGetOrder">我的抢单</a></li>
                            <li><a href="${pageContext.request.contextPath}/post/userposts">我的帖子</a></li>
                            <li><a href="${pageContext.request.contextPath}/user/logout">退出登录</a></li>
                        </ul>
                    </li>
                    </c:if>
                    <c:if test="${sessionScope['_LOGIN_USER_']==null}">
                    <li><a href="${pageContext.request.contextPath}/user/loginpage">登录</a></li>
                    </c:if> 
                </ul>
            </nav>
            <!-- /Master Nav -->
        </div>
    </header>
    <!-- /Header -->